package server;

import org.dom4j.Element;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by swallow on 2021/3/17.
 */
public class Server {
    List<Service> serviceList;

    public Server(List<Element> list) {
        this.serviceList = new ArrayList<>();
        for (Element element : list) {
            serviceList.add(new Service(element));
        }
    }

    public void start() throws IOException {
        for (Service service : serviceList) {
            service.start();
        }
    }
}
